#ifndef __STDLIB_SLEEP_H__
#define __STDLIB_SLEEP_H__

#include <stdlib/stdlib.h>

void sleep(unsigned int ms) {
  unsigned int actual = CLOCK_TICK;
  unsigned int final  = actual + (ms / 55);
  while(actual <= final) {
    actual = CLOCK_TICK;
    asm nop;
  }
  return;
}

#endif
